app.controller('resourceDownloadCtrl',['$scope','ApiUtil','sweetAlertUtil',function($scope,ApiUtil,sweetAlertUtil){
	$scope.loaded = false;
	ApiUtil.get('/api/forms').then(function(res){
		$scope.loaded = true;
		if(res.code == 200){
			$scope.files = res.result;
		}else{
			sweetAlertUtil.fail(res.msg);
		}
	},function(){
		sweetAlertUtil.fail('服务器异常');
	})
}]);